USE [texchange_db]
GO

/****** Object:  UserDefinedFunction [dbo].[Fn_GetRefference]    Script Date: 05/29/2011 19:58:55 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE FUNCTION [dbo].[Fn_GetRefference] 
(	
	-- Add the parameters for the function here
	@id  bigint=0
)
RETURNS TABLE 
AS
RETURN 
(
	-- Add the SELECT statement with parameter references here
	SELECT [id], [refference], [text], [language_id] from TextBaseItem WHERE id=@id
)

GO


